package com.atguigu.tingshu.account.service;

import com.atguigu.tingshu.model.account.UserAccount;
import com.atguigu.tingshu.model.account.UserAccountDetail;
import com.atguigu.tingshu.vo.account.AccountLockVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

public interface UserAccountService extends IService<UserAccount> {


    void saveUserAccount(Long userId);

    BigDecimal getAvailableAmount(Long userId);

    void checkAndLock(AccountLockVo accountLockVo);

    Page<UserAccountDetail> findUserRechargePage(Page<UserAccountDetail> pageInfo, Long userId,String type);

    Page<UserAccountDetail> findUserConsumePage(Page<UserAccountDetail> pageInfo, Long userId, String accountTradeTypeMinus);
}
